package com.hfjyz.registration.service;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.validation.BindException;
import org.springframework.validation.Errors;

import com.hfjyz.registration.command.AnnouncementEditCommand;
import com.hfjyz.registration.command.AnnouncementListCommand;
import com.hfjyz.registration.model.Exam;

public interface AnnouncementService extends BaseService {

	@SuppressWarnings("rawtypes")
	public Map initEdit(AnnouncementEditCommand cmd, Errors errors)
			throws Exception;

	public void editOk(HttpServletRequest request, AnnouncementEditCommand cmd,
			BindException errors) throws Exception;

	public void search(HttpServletRequest request, AnnouncementListCommand cmd)
			throws Exception;

	public void delete(HttpServletRequest request, AnnouncementListCommand cmd,
			BindException errors) throws Exception;

	@SuppressWarnings("rawtypes")
	public Map initExamSelect(AnnouncementListCommand cmd, Errors errors)
			throws Exception;

	public Exam examSelect(HttpServletRequest request,
			HttpServletResponse response, AnnouncementListCommand cmd,
			BindException errors) throws Exception;
}
